package cn.jeefast.common.entity;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 医学专员表

 * </p>
 *
 * @author theodo
 * @since 2020-01-06
 */
@TableName("mb_commissioner")
public class MbCommissioner extends Model<MbCommissioner> {

    private static final long serialVersionUID = 1L;

    /**
     * 医学专员ID
     */
	@TableId(value="comm_id", type= IdType.AUTO)
	private Long commId;
    /**
     * 医学专员账号
     */
	@TableField("comm_accnount")
	private String commAccnount;
    /**
     * 医学专员姓名
     */
	@TableField("comm_name")
	private String commName;
    /**
     * 所属单位
     */
	@TableField("comm_company")
	private String commCompany;
    /**
     * 邀请码
     */
	@TableField("comm_code")
	private String commCode;
    /**
     * 登录密码
     */
	@TableField("comm_password")
	private String commPassword;

	/**
	 * 关联项目ID
	 */
	@TableField("proj_id")
	private Long projId;


	public Long getCommId() {
		return commId;
	}

	public void setCommId(Long commId) {
		this.commId = commId;
	}

	public String getCommAccnount() {
		return commAccnount;
	}

	public void setCommAccnount(String commAccnount) {
		this.commAccnount = commAccnount;
	}

	public String getCommName() {
		return commName;
	}

	public void setCommName(String commName) {
		this.commName = commName;
	}

	public String getCommCompany() {
		return commCompany;
	}

	public void setCommCompany(String commCompany) {
		this.commCompany = commCompany;
	}

	public String getCommCode() {
		return commCode;
	}

	public void setCommCode(String commCode) {
		this.commCode = commCode;
	}

	public String getCommPassword() {
		return commPassword;
	}

	public void setCommPassword(String commPassword) {
		this.commPassword = commPassword;
	}

	public Long getProjId() {
		return projId;
	}

	public void setProjId(Long projId) {
		this.projId = projId;
	}

	@Override
	protected Serializable pkVal() {
		return this.commId;
	}
	@Override
	public String toString() {
		return "MbCommissioner{" +
			", commId=" + commId +
			", commAccnount=" + commAccnount +
			", commName=" + commName +
			", commCompany=" + commCompany +
			", commCode=" + commCode +
			", commPassword=" + commPassword +
			"}";
	}
}
